<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

	<head>
		<title>修改密码</title>
		<script type="text/javascript">
	jq(function() {
		jq("button.valid").parents("form").validate({
			rules: {
			"user.password": {required: true,maxlength: 16},
			"user.username": {required: true,maxlength: 16},
			"newPassword2": {required: true,maxlength: 16,equalTo: "#newPassword"}
			}
		});
	});
	</script>
	</head>

	<body>

		<fieldset>
			<legend>
				修改密码
			</legend>
			<form action="wel!changePassword.z" method="post">
				<label>
					旧密码
					<br />
					<input type="password" name="user.password" />
					<br />
				</label>
				<label>
					新密码
					<br />
					<input type="password" name="user.username" id="newPassword" />
					<br />
				</label>
				<label>
					重复新密码
					<br />
					<input type="password" name="newPassword2" />
					
					<br />
				</label>
				<button type="submit" class="valid">
					修改密码
				</button>
			</form>
		</fieldset>
	</body>
